#ifndef VISRE_VERBS_H
#define VISRE_VERBS_H

#define VIS_UVERBS_ABI_VERSION   1

enum rxe_counters {
    RXE_CNT_SENT_PKTS,
    RXE_CNT_RCVD_PKTS,
    RXE_CNT_DUP_REQ,
    RXE_CNT_OUT_OF_SEQ_REQ,
    RXE_CNT_RCV_RNR,
    RXE_CNT_SND_RNR,
    RXE_CNT_RCV_SEQ_ERR,
    RXE_CNT_COMPLETER_SCHED,
    RXE_CNT_RETRY_EXCEEDED,
    RXE_CNT_RNR_RETRY_EXCEEDED,
    RXE_CNT_COMP_RETRY,
    RXE_CNT_SEND_ERR,
    RXE_CNT_LINK_DOWNED,
    RXE_CNT_RDMA_SEND,
    RXE_CNT_RDMA_RECV,
    RXE_NUM_OF_COUNTERS
};

struct vis_ah {
    struct ib_ah ibah;
};

struct vis_cq {
    struct ib_cq ibcq;
};

struct vis_pd {
    struct ib_pd ibpd;
};

struct vis_qp {
    struct ib_qp ibqp;
};

struct vis_srq {
    struct ib_srq ibsrq;
};

struct vis_ucontext {
    struct ib_ucontext ibuc;
};

struct vis_mw {
    struct ib_mw ibmw;
};

int vis_register_device(struct vis_re *vis);

#endif